<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>导出文件</title>
  <script type="text/javascript" src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script>
</head>

<body>
  <div id="container"></div>
</body>

<script>
  const type = "<%= chart_type %>";
  const options = JSON.parse("<%= JSON.stringify(vis_config) %>".replace(/&#34;/g, '"'));
  new G2Plot[type]('container', options).render();
</script>

</html>